<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.UserModule.bean.*"%>
<%@page import="com.UserModule.dao.*"%>
<%@page import="security.*"%>
	<header id="header">
    	<div class="logo">&nbsp;&nbsp;</div>
        <div id="status" class="fr m20">
        <strong>
<%
      String basePath=request.getScheme() + "://" + request.getServerName() + ":"+ request.getServerPort() + request.getContextPath()+ "/" ;
      if (session.getAttribute("User") == null) {
      		response.sendRedirect(basePath+"UserModule/Login.jsp");
      } else {
    	  TbUserBean tu = (TbUserBean) session.getAttribute("User");
%> 欢迎您 <%
      	switch (tu.getUserState()) {
      		case 0:
      			out.print("超级管理员");
      			break;
      		case 1:
      			out.print("管理员");
      			break;
      		case 2:
      			out.print("审核人员");
      			break;
      		case 3:
      			out.print("普通用户");
      			break;
      		}
      %> :<%=tu.getUserName()%>,当前您正在线。
    
        </strong>
      <%} %>
        <a href="<%=basePath%>UserModule/Exit.jsp" id="logout">退出登录</a>
        </div>
    </header>
    <nav id="nav">
    	<ul>
    		<li><a href="TbSmsServlet?method=look" class="nav1 <%if ("1".equals(request.getParameter("topCurrent"))) {%>current <%}%> ">短信管理</a></li>
        	<li><a href="TbOrderServlet?method=look"  class="nav2 <%if ("2".equals(request.getParameter("topCurrent"))) {%>current <%}%> " >互动管理</a></li>
        	<li><a href="UserModule/UsersList.jsp" class="nav3 <%if ("3".equals(request.getParameter("topCurrent"))) {%>current <%}%> ">账户管理</a></li>
        	<li><a href="AddressServlet?method=lookDir&startTime=&endTime=&dirName=&dingwei=" class="nav4 <%if ("4".equals(request.getParameter("topCurrent"))) {%>current <%}%> ">客户管理</a></li>
        	<li><a href="TbSmsTemplateServlet?method=search" class="nav6 <%if ("6".equals(request.getParameter("topCurrent"))) {%>current <%}%> ">常用短语</a></li>
        	<li><a href="DianboTypeServlet?method=look" class="nav8 <%if ("8".equals(request.getParameter("topCurrent"))) {%>current <%}%> ">积分管理</a></li>
        </ul>
    </nav>
